package com.gw.vip.center.feign;

import com.gw.vip.center.dto.message.MessageDto;
import com.gw.vip.common.vo.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.validation.Valid;

/**
 * @author GW
 * @description
 * @since 2022-04-17
 */
@FeignClient("vip-message")
public interface VipMessageFeignClient {
    /**
     * 发送消息
     * @param dto
     * @return
     */
    @PostMapping("/message/send")
    Result send(@RequestBody @Valid MessageDto dto);
}
